<div id="header-top">
    <div class="container">
        <?php if($this->session->userdata('idusuario') == ''){?>
            <form action="<?php echo site_url('/inicio/login/')?>" method="post">
                <p class="left">
                    <?php echo lang('email')?>:&nbsp;<input type="text" class="input" value="" onfocus="this.select()" name="usu_email"/>&nbsp;
                    <?php echo lang('pass')?>:&nbsp;<input type="password" class="input" value="" onfocus="this.select()" name="usu_password"/>&nbsp;&nbsp;|
                    <input type="submit" class="botonSimple" value="<?php echo lang('acceder')?>"/>|&nbsp;&nbsp;
                    <a href="<?php echo site_url('/usuario/registro/')?>" class="botonSimple"><?php echo lang('registrarse')?></a>
                </p>
            </form>
        <?php }else{?>
            <form action="<?php echo site_url('/inicio/logout/')?>" method="post">
                <p class="left">
                    <?php echo lang('bienvenido')?>:&nbsp;<b><?php echo $this->session->userdata('nombre');?></b> |
                    <input type="submit" class="botonSimple" value="<?php echo lang('desconectar')?>"/>
                </p>
            </form>
        <?php }?>
        <p class="right">Subscribe to <a href="<?php echo site_url('feed');?>">RSS</a> | <a href="#">Email</a> | <strong>122 Subscribers</strong></p>
    </div><!-- end .container -->
</div><!-- end #header-top -->

<div id="header">
    <div class="container">
        <h1 id="logo">
            <a href="<?php echo site_url()?>">
                <img src="/ventatron/public/templates/traveltemplate/img/logo.png" alt="Travel Guide">
            </a>
        </h1>
        <div id="header-ads">
            <span style="color: #9C163E; font-weight: bold"><?php echo $this->session->flashdata('error_usuario');?></span>
            <!--a href="http://themeforest.net/?ref=smuliii"><img src="http://envato.s3.amazonaws.com/referrer_adverts/tf_468x60_v4.gif" alt="tf_468x60_v4" /></a-->
        </div><!-- end #header-ads -->
    </div><!-- end .container -->
</div><!-- end #header -->

<div id="nav">
    <div class="container">
        <ul>
            <li class="active"><a href="<?php echo site_url()?>"><?php echo lang('inicio');?></a></li>
            <li><a href="<?php echo site_url('blog')?>">Blog</a></li>
            <?php if($this->session->userdata('idusuario') != ''){?>
            <li><a href="<?php echo site_url('panel')?>"><?php echo lang('acceso_propietarios');?></a>
                <ul>
                    <li><a href="<?php echo site_url('usuario')?>"><?php echo lang('usuarios');?></a></li>
                    <li><a href="<?php echo site_url('producto')?>"><?php echo lang('propiedades');?></a></li>
                </ul>
            </li>
            <?php }?>
            <?php if($this->session->userdata('rol') != '') if($this->session->userdata('rol') < 2){?>
            <li><a href="<?php echo site_url('panel')?>"><?php echo lang('acceso_administradores');?></a>
                <ul>
                    <li><a href="<?php echo site_url('promocion')?>"><?php echo lang('promociones');?></a></li>
                    <li><a href="<?php echo site_url('sitemap')?>"><?php echo lang('sitemap');?></a></li>
                </ul>
            </li> 
            <?php }?>
        </ul>

        <div id="search">
            <input type="text" class="input" value="" placeholder="Keyword search here...">
            <input type="submit" class="submit" value="Go">
        </div><!-- end #search -->
    </div><!-- end .container -->

</div><!-- end #nav -->

